<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>for循环</title>
</head>
<body>
  <script>
    for(let i = 1;i <= 10;i++){
      document.write('月薪过万')
    }

    let sum = 0
    for(let i = 1; i <= 5; i++){
      for(let j = 1; j <= 5; j++){
        console.log(`第${i}天，记住第${j}个单词`)
        sum += j
      }
      console.log(`已经记住${sum}个单词`);
      
    }
  </script>
</body>
</html>